import 'package:json_annotation/json_annotation.dart';

part 'search_key.g.dart';

@JsonSerializable()
class SearchKey extends Object {
  @JsonKey(name: 'id')
  int id;

  @JsonKey(name: 'search_key')
  String searchKey;

  @JsonKey(name: 'search_times')
  int searchTimes;

  SearchKey(
    this.id,
    this.searchKey,
    this.searchTimes,
  );

  factory SearchKey.fromJson(Map<String, dynamic> srcJson) =>
      _$SearchKeyFromJson(srcJson);
}
